package com.abu.gatewayms.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.gateway.filter.GatewayFilter;
import org.springframework.cloud.gateway.filter.factory.AbstractGatewayFilterFactory;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Component
public class CheckLoginGatewayFilterFactory extends AbstractGatewayFilterFactory<Object> {
    @Autowired
    private CheckLoginGatewayFilter checkLoginGatewayFilter;

    @Override
    public GatewayFilter apply(Object config) {
        return checkLoginGatewayFilter;
    }
}
